<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>管理班级 </title>
		<link href="css/style.css" rel="stylesheet" type="text/css">
	</head>

	<body>

		<center>
			<h1>管理班级 
				</h1>

			
			<table align="center" border="1">
			<tr>
				<th>
					班级
				</th>
				<th>
					班级图片
				</th>
				<th>
					创建时间
				</th>
				<th>
					创建人
				</th>
				<th>
					班级人数
				</th>
				<th>
					编辑
				</th>
				<th>
					删除
				</th>
			</tr>

			<c:forEach var="list" items="${requestScope.list}" varStatus="index">
				<tr
					<c:if test="${index.index % 3 == 0 }"> style="background-color:rgb(240,240,240);"</c:if>
					<c:if test="${index.index % 2 == 0 }"> style="background-color:rgb(219,241,212);"</c:if>>
					<td>
						${list.t_group_name}
					</td>
					<td>
						<img width="100" height="100" src="${list.t_group_pic}" alt="alt">
					</td>
					<td>
						${list.t_group_addtime}
						
					</td>
										<td>
						${list.t_user_nick}
						
					</td>
										<td>
						${list._count}
					</td>
					<td>
						<a href="editinfo_class.jsp?id=${list.t_group_id}">编辑</a>
					</td>
					<td>
						<a href="sys_delClass?id=${list.t_group_id}"
							onclick="return window.confirm('确定删除?')">删除</a>
					</td>
				</tr>
			</c:forEach>

</table>
		</center>
	</body>
</html>
